<?php 
	class Product_Services_GetImage{
		public static function getImage($product_id,$fileName){
			return Tomato_Config::getConfig()->get("web")->url->static.'/resource/' . substr(Tomato_Config::getConfig()->get("db")->prefix,0,-1) .'/'. Zend_Auth::getInstance()->getIdentity()->shop->id.'/images/products/'.$product_id.'/'.$fileName;			
		}
		public static function getNoImage(){
			return Tomato_Config::getConfig()->get("web")->url->static . '/images/noImage/product/no-image.png';  
		}
	}
?>